package com.flower.enjoyment.flower.service.impl;

import com.flower.enjoyment.flower.entityDo.FlowerCardDo;
import com.flower.enjoyment.flower.entityDo.SysPayDo;
import com.flower.enjoyment.flower.mapper.FlowerCardMapper;
import com.flower.enjoyment.flower.mapper.SysPayMapper;
import com.flower.enjoyment.flower.service.FlowerCardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FlowerCardServiceImpl implements FlowerCardService {
    @Autowired
    private FlowerCardMapper flowerCardMapper;
    @Autowired
    private SysPayMapper sysPayMapper;
    /**
     * 花享卡列表
     *
     * @param iscommend
     * @return
     */
    @Override
    public List<FlowerCardDo> selectCardList(int iscommend) {
        return flowerCardMapper.selectCardList(iscommend);
    }

    /**
     * 花享卡详情
     *
     * @param id
     * @return
     */
    @Override
    public FlowerCardDo selectByPrimaryKey(String id) {
        return flowerCardMapper.selectByPrimaryKey(id);
    }

    /**
     * 获取支付列表
     *
     * @return
     */
    @Override
    public List<SysPayDo> getSysPayList() {
        return sysPayMapper.getSysPayList();
    }
}
